package com.dognessnetwork.operation.ops.domain;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


/**
 * 消息实体类
 * @author Dogness
 *
 */
@Entity
@Table(name="d_content")
public class Messages implements Serializable{

	private static final long serialVersionUID = 1L;
    /**
     * TODO Auto-generated attribute documentation
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
    
    /**
     * TODO 用户ID
     *
     */
    @NotNull
    private String userIdCard;
    
    /**
     * TODO 客服ID
     *
     */
    private String customerIdCard;
    
    /**
     * TODO 发送方向
     *
     */
    @NotNull
    @Column(name = "sender")
    private boolean sender;
    
    /**
     * TODO 内容
     */
    @NotNull
    @Column(name = "content")
    private	String	content;

    /**
     * TODO 发送时间
     *
     */
    @NotNull
    private String sendTime;
    
    /**
     * TODO 接收时间
     */
    private String receiveTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserIdCard() {
		return userIdCard;
	}

	public void setUserIdCard(String userIdCard) {
		this.userIdCard = userIdCard;
	}

	public String getCustomerIdCard() {
		return customerIdCard;
	}

	public void setCustomerIdCard(String customerIdCard) {
		this.customerIdCard = customerIdCard;
	}

	public boolean isSender() {
		return sender;
	}

	public void setSender(boolean sender) {
		this.sender = sender;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(String receiveTime) {
		this.receiveTime = receiveTime;
	}

	@Override
	public String toString() {
		return "{\"id\":\"" + id + "\", \"userIdCard\":\"" + userIdCard + "\", \"customerIdCard\":\"" + customerIdCard
				+ "\", \"sender\":\"" + sender + "\", \"content\":\"" + content + "\", \"sendTime\":\"" + sendTime
				+ "\", \"receiveTime\":\"" + receiveTime + "\"}  ";
	}

	
}
